//
//  LCMacro.h
//  Test
//
//  Created by mac on 2019/10/24.
//  Copyright © 2019 SZJ. All rights reserved.
//

#ifndef LCMacro_h
#define LCMacro_h



#define LC_YES @"yes"
#define LC_NO @"no"

#define UID  [[NSUserDefaults standardUserDefaults] objectForKey:@"MID"]

#define MName  [[NSUserDefaults standardUserDefaults] objectForKey:@"MName"]

#define MLevel  [[NSUserDefaults standardUserDefaults] objectForKey:@"MLevel"]

/**企业🆔*/
#define MEnterpriseId  [[NSUserDefaults standardUserDefaults] objectForKey:@"MEnterpriseId"]

#define MEnterpriseText  [[NSUserDefaults standardUserDefaults] objectForKey:@"MEnterpriseText"]

//部门id
#define MGroup  [[NSUserDefaults standardUserDefaults] objectForKey:@"MGroup"]

//部门中文
#define MNumber  [[NSUserDefaults standardUserDefaults] objectForKey:@"MNumber"]

#define MPhone  [[NSUserDefaults standardUserDefaults] objectForKey:@"MPhone"]

#define MOneText  [[NSUserDefaults standardUserDefaults] objectForKey:@"MOneText"]

#define MTwo  [[NSUserDefaults standardUserDefaults] objectForKey:@"MTwo"]
#define MTwoText  [[NSUserDefaults standardUserDefaults] objectForKey:@"MTwoText"]

#define MOne  [[NSUserDefaults standardUserDefaults] objectForKey:@"MOne"]

#define MThree  [[NSUserDefaults standardUserDefaults] objectForKey:@"MThree"]
#define MThreeText  [[NSUserDefaults standardUserDefaults] objectForKey:@"MThreeText"]

#define MFour  [[NSUserDefaults standardUserDefaults] objectForKey:@"MFour"]
#define MFourText  [[NSUserDefaults standardUserDefaults] objectForKey:@"MFourText"]

#define MCode  [[NSUserDefaults standardUserDefaults] objectForKey:@"MCode"]


#define LC_CURRENTVC @"cc_currentVC"

#define LC_RGB(r,g,b)  [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]

#define LC_HEX(f) [UIColor colorWithHexString:f]



#define X_TABBAR(f) [AdapterForXIB cc_FrameForX:(f)]

#define X_NAV(f) [AdapterForXIB cc_FrameForNavX:(f)]


#pragma mark - Frame
#define WIDTH_SCREEN        [UIScreen mainScreen].bounds.size.width
#define HEIGHT_SCREEN       [UIScreen mainScreen].bounds.size.height


#define W(f) ((f) * [UIScreen mainScreen].bounds.size.width / 375)

#define LC_WEAK_SELF __weak typeof(self) weakSelf = self;

#define LC_STRONG_SELF __strong typeof(self) strongSelf = weakSelf;

#define LC_COLOR(f) [UIColor colorNamed:f]




#ifdef DEBUG
#define SQ_LOG(format, ...) printf("\n\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓         ddd          ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\n  🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳 富强、民主、文明、和谐、自由、平等  🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳\n--------------------------------------------------------------------------------\n\n类: <%p %s:(%d) >\n方法: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:( format @"                         \n\n--------------------------------------------------------------------------------\n🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳  公正、法治、爱国、敬业、诚信、友善 🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳🇨🇳 \n↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑            结束             ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑\n"), ##__VA_ARGS__] UTF8String] )
#else
#define SQ_LOG(format, ...)
#endif

#endif /* LCMacro_h */
